#!/bin/sh

choose="$(printf "poweroff\nreboot\nLogout\nCancel" | rofi -dmenu -p "login: " -config ~/.config/hypr/rofi/config.rasi)"

case $choose in
    Cancel)
        exit
        ;;
    Logout)
        hyprctl dispatch exit
        riverctl exit
        ;;
    *)
        loginctl "$choose"
        ;;
esac
